package com.yamaikeji.plan.controller;

import com.yamaikeji.common.annotation.Log;
import com.yamaikeji.common.core.controller.BaseController;
import com.yamaikeji.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 桑伟杰
 * @date 2025-04-08
 * @description 版本Controller
 */
@RestController
@RequestMapping("/api/tts/version")
public class VersionController extends BaseController {

    private static final String VERSION = "1.0.1";

    /**
     * 查询版本
     */
    @Log(title = "查询版本")
    @PostMapping("/getVersion")
    public AjaxResult getVersion() {
        return AjaxResult.success((Object)VERSION);
    }
}
